import request from '@/utils/request'

/**
* 报警记录分页查询
* @param {查询条件} data
*/
export function listCksAlarmRecord(query) {
  return request({
    url: 'business/CksAlarmRecord/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增报警记录
* @param data
*/
export function addCksAlarmRecord(data) {
  return request({
    url: 'business/CksAlarmRecord',
    method: 'post',
    data: data,
  })
}
/**
* 修改报警记录
* @param data
*/
export function updateCksAlarmRecord(data) {
  return request({
    url: 'business/CksAlarmRecord',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取报警记录详情
* @param {Id}
*/
export function getCksAlarmRecord(id) {
  return request({
    url: 'business/CksAlarmRecord/' + id,
    method: 'get'
  })
}

/**
* 删除报警记录
* @param {主键} pid
*/
export function delCksAlarmRecord(pid) {
  return request({
    url: 'business/CksAlarmRecord/delete/' + pid,
    method: 'delete'
  })
}
